#ifndef TEST8_H
#define TEST8_H

#include <QWidget>
#include <QStandardItemModel>

namespace Ui {
class test8;
}

class test8 : public QWidget
{
    Q_OBJECT

public:
    explicit test8(QWidget *parent = nullptr);
    ~test8();

private slots:
    void on_pushButton_clicked();

    void on_pushButton_2_clicked();

    void on_pushButton_3_clicked();

    void on_pushButton_4_clicked();

private:
    Ui::test8 *ui;
    QStandardItemModel* my_Model;
    void initital();

    void querytree(QStandardItem *item);

    void deletenode(QStandardItem *item);

    void deletetree(QStandardItem *item);

    void deletetree2(QStandardItem *item);
};

#endif // TEST8_H
